/********************************************************************************************************
 * PROGRAM      : TM
 * DATE - TIME  : Friday 04 August 2006 - 19h18
 * AUTHOR       :  (  )
 * FILENAME     : main.cpp
 * LICENSE      : 
 * COMMENTARY   : 
 ********************************************************************************************************/
#include <QApplication>
#include <QSettings>
#include "mcamconview.h"
//#include "ui_imp/ui_camconui.h"
#include <iostream>
int main( int argc, char ** argv )
{
    QString host;
    quint32 port;
    QApplication app( argc, argv );
    app.setOrganizationName("MarsSociety");
    app.setApplicationName("CamConView");
    QSettings settings;
    host = settings.value("host",QString("127.0.0.1")).toString();
    port = settings.value("port",3000).toInt();
    std::cout<<"host:"<<host.toStdString()<<" port:"<<port<<std::endl;
    TM::MCamConView view(port,QHostAddress(host));
    view.show();
    return app.exec();
}
